package com.gzsxy.esjy.service.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.gzsxy.esjy.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 商品
 * @date 2022/1/10 22:27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_Product")
@ApiModel(value="Product对象", description="类型")
public class Product extends BaseEntity {

    private static final long serialVersionUID=1L;


    @ApiModelProperty(value = "名称")
    private String title;

    @ApiModelProperty(value = "编号")
    private String productCode;

    @ApiModelProperty(value = "分类")
    private String categoryId;

    @ApiModelProperty(value = "原价")
    private Double oldPrice;

    @ApiModelProperty(value = "价格")
    private Double price;

    @ApiModelProperty(value = "数量")
    private Integer number;

    @ApiModelProperty(value = "简介")
    private String intro;

    @ApiModelProperty(value = "图片")
    private String imagePath;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "学校")
    private String school;

    @ApiModelProperty(value = "成色")
    private String conditions;

    @ApiModelProperty(value = "转手原因")
    private String reasonsFoSale;

    @ApiModelProperty(value = "浏览数量")
    private Integer viewCount;

    @ApiModelProperty(value = "满多少")
    private Integer fullScore;

    @ApiModelProperty(value = "返多少")
    private Integer donateScore;

    @ApiModelProperty(value = "推荐")
    private String marker;

    @ApiModelProperty(value = "审核状态 0未审核 1已通过 2不通过")
    private Integer verifyStatus;

    @ApiModelProperty(value = "发布状态 0未发布 1已发布")
    private Integer publishStatus;

    @ApiModelProperty(value = "版本")
    @Version
    private Integer version;
}
